<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>礼品详情</title>
    <link rel="stylesheet" href="__CSS__/main.css"/>
    <link rel="stylesheet" href="__CSS__/swiper.min.css"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
</head>
<body>
<div id="wrapper">
    <h2 class="detail-h2">礼品详情</h2>
    <!--banner-->
    <div class="detail-banner swiper-container">
        <php>
            
            $imglist = json_decode($data['img'],true);
        </php>
        <ul class="swiper-wrapper">
            <foreach name="imglist" item="vo">
            <li class="swiper-slide">
                <a href="#">
                    <img class="swiper-lazy" data-src="{:getImgPath($vo)}" alt="banner"/>

                    <div class="swiper-lazy-preloader"></div>
                </a>
            </li>
            </foreach>
            
        </ul>
        <div class="pagination-wrap">
            <div class="pagination"></div>
        </div>
    </div>
    <!--banner end-->
    <div class="detail-price">
        <div class="price-header">
            <h2>{$data.title}</h2>
            <span class="detail-share"></span>
        </div>
        <div class="preferential-price">
            <h3><span>￥</span>{$data.saleprice}</h3>
            <h4>价格：<span>￥</span>{$data.price}</h4>
        </div>
    </div>
    <h2 class="product-title">产品详情</h2>

    <div class="product">
        <div class="product-submit-title">
            <span class="title-back"></span>

            <h3>产品规格</h3>
            <span></span>
            <p>{$data.item}</p>
        </div>
        <div class="product-introduce">
            {:htmlspecialchars_decode($data['content'])}
        </div>
    </div>
    <div class="address">
        <!-- <form name="frm" id="frm" action="{:U('Home/Index/apply')}" method="post"> -->
            <h2>收货地址</h2>
            <ul>
                <li class="name">
                    <span>收货人</span>

                    <div><input class="submit-val" type="text" placeholder="名字" name="username" /></div>
                </li>
                <li class="tel">
                    <span>联系电话</span>

                    <div><input class="submit-val" type="text" placeholder="手机或固话" name="phone"/></div>
                </li>
                <li class="provinces">
                    <span>选择地区</span>

                    <div class="controls">
                        <select name="location_p" id="location_p"></select>
                        <select name="location_c" id="location_c"></select>
                        <select name="location_a" id="location_a"></select>
                    </div>
                </li>
                <li class="detail-address">
                    <span>详细地址</span>

                    <div><input class="submit-val" type="text" placeholder="街道门牌信息" name="addr"/></div>
                </li>
                <li class="other-info">
                    <span>备注</span>
                    <div><input type="text" name="remark"/></div>
                </li>
            </ul>
            <span class="submit-info">提交信息</span>
            <input type="hidden" name="code" value="{$code}">
        <!-- </form> -->
    </div>
</div>
<script type="text/javascript">
    var ajaxUrl = "{:U('Home/Index/apply')}";
    var redirectUrl = "{:U('Home/Index/succ')}";
    localStorage.a = 1;
</script>
<script src="__JS__/home/jquery.js"></script>
<script src="__JS__/home/swiper.min.js"></script>
<script src="__JS__/home/main.js"></script>
<script src="__JS__/home/region_select.js?t=5"></script>
<script type="text/javascript">
    new PCAS('location_p', 'location_c', 'location_a', '江苏省', '', '');
</script>
</body>
</html>